<!DOCTYPE html>
<html lang="zh_CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title></title>
    <meta name="viewport" content="initial-scale=1, maximum-scale=1">
    <!-- <link rel="shortcut icon" href="http://favicon.ico"> -->
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="viewport" content="width=device-width, height=device-height, user-scalable=no, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0">

    <!--<link rel="stylesheet" href="//g.alicdn.com/msui/sm/0.6.2/css/sm-extend.min.css">-->

    <!-- 固定的css 和 common.js 的引用    -->
    <link rel="stylesheet" href="http://47.104.254.28/commonfile/css/sm.min.css">
    <link rel="stylesheet" href="http://47.104.254.28/commonfile/css/sm-extend.min.css">
    <script type="text/javascript" src="http://47.104.254.28/commonfile/common/common/common.js"></script>

    <!-- <script type="text/javascript" src="http://47.104.254.28/commonfile/js/js/vconsole.min.js"></script>
		<script>
			var vConsole = new VConsole();
		</script> -->
    <!--banner-->
    
<style type="text/css">
    /*css 的样式都放在这里*/
   
    /*banner图大小设置*/
    #index_banner{
        width: 100%;
        height: 150px;
    }
    /*table大小*/
    #table_size{
        /*border: solid 1px red;*/
        width: 100%;
        border: none;
        background-color: white;
    }
    #table_size tr td{
        /*height: 200px;*/
        border: none;
        text-align: center;
        align-self: center;
    }
    
    /*链接图标大小与位置*/
    #weizhi_left{
        width: 50%;
        align-self: center;
        text-align: center;
    }
    #weizhi_right{
        width: 50%;
        align-self: center;;
        text-align: center;
    }
    #index_lianjie_left{
        height: 70px;
        text-align: center;
        /*margin-left: 35% ;*/
    }
    #index_lianjie_right{
        height: 70px;
        text-align: center;
        /*margin-left: 15% ;*/
    }
    #cha{
        height: 20px;
    }
    
  
</style>


</head>
<body>
<div class="page-group">
    <div class="page page-current">      
        <!-- html代码内容区域 -->
        
        <!--banner
            作者：510203306@qq.com
            时间：2018-01-08
            描述：
        -->
        <div class="content" >
            <!-- Slider -->
            <div class="swiper-container" data-space-between='10'  data-autoplay="2000" 
                data-autoplay-disable-on-interaction=false style="height: 180px;">
                <div class="swiper-wrapper">
                    
                    <!--banner图 插入位置
                        作者：510203306@qq.com
                        时间：2018-01-09
                        描述：
                    -->
                   <!--<div class="swiper-slide"><img id="index_banner" style="width:100%" src="http://mifeng.gonghuiren.com//uploads/images/bcban1.jpg" alt=""></div><div class="swiper-slide"><img id="index_banner" style="width:100%" src="http://mifeng.gonghuiren.com//uploads/images/bcban2.jpg" alt=""></div><div class="swiper-slide"><img id="index_banner" style="width:100%" src="http://mifeng.gonghuiren.com//uploads/images/bcban3.jpg" alt=""></div>-->
                </div>
                <!--<div class="swiper-pagination"></div>-->
            </div>



            <div style="padding-top:20px;background-color: white">
                <table id="table_size" border="" cellspacing="" cellpadding="" >
                    <tr>
                        <td  onclick="menu_click2()">
                            <span id="weizhi_right">
                                <img id="index_lianjie_right" src="http://47.104.254.28/commonfile/img/img/img_hexinkaodian.png"/>
                                <br />
                                <span id="index_wenzi_right">
                                    核心考点
                                </span>
                                <div id="cha">
                                    
                                </div>
                            </span>
                            
                        </td>
                        <td onclick="menu_click1()">
                            <span id="weizhi_left">
                                <img id="index_lianjie_left" src="http://47.104.254.28/commonfile/img/img/img_jiyibaodian.png"/>
                                <br />
                                <span id="index_wenzi_left">
                                    记忆宝典
                                </span>
                                <div id="cha">
                                    
                                </div>
                            </span>
                            
                        </td>
                    </tr>
                    <tr>
                        <td  onclick="menu_click3()">
                            <span id="weizhi_left">
                                <img id="index_lianjie_left" src="http://47.104.254.28/commonfile/img/img/img_gaofentiku.png"/>
                                <br />
                                <span id="index_wenzi_left">
                                    高分题库
                                </span>
                                <div id="cha">
                                    
                                </div>
                            </span>
                            
                        </td>
                        <td  onclick="menu_click4()">
                            <span id="weizhi_right">
                                <img id="index_lianjie_right" src="http://47.104.254.28/commonfile/img/img/img_yatimijuan.png"/>
                                <br />
                                <span id="index_wenzi_right">
                                    押题密卷
                                </span>
                                <div id="cha">
                                    
                                </div>
                            </span>
                        </td>
                    </tr>
                    <tr>
                        <td onclick="menu_click5()">
                            <span id="weizhi_left">
                                <img id="index_lianjie_left" src="http://47.104.254.28/commonfile/img/img/img_zhiboketang.png"/>
                                <br />
                                <span id="index_wenzi_left">
                                    直播课堂
                                </span>
                                <div id="cha">
                                    
                                </div>
                            </span>
                        </td>
                        <td  onclick="menu_click6()">
                            <span id="weizhi_right">
                                <img id="index_lianjie_right" src="http://47.104.254.28/commonfile/img/img/img_tushushangcheng.png"/>
                                <br />
                                <span id="index_wenzi_right">
                                    图书商城
                                </span>
                                <div id="cha">
                                    
                                </div>
                            </span>
                        </td>
                    </tr>
                </table>
            </div>

        </div>
        
        <!--页面搭建
            作者：510203306@qq.com
            时间：2018-01-08
            描述：
        -->
        
        
        
        
    </div>
</div>





<!-- 固定的js引用，所有的jQuery 要用 $$ 表示 -->
<script type="text/javascript" src="http://47.104.254.28/commonfile/js/js/jquery-1.11.1.min.js"></script>
<!-- 这一行代码是为了 避免js冲突 -->
<script type="text/javascript">var $$ =jQuery.noConflict();</script>
<script type='text/javascript' src='http://47.104.254.28/commonfile/zepto/zepto/zepto.min.js' charset='utf-8'></script>
<script type='text/javascript' src='http://47.104.254.28/commonfile/js/js/sm.min.js' charset='utf-8'></script>
<script type='text/javascript' src='http://47.104.254.28/commonfile/js/js/sm-extend.min.js' charset='utf-8'></script>


<script type="text/javascript">
// 函数区域，函数放在“初始化区域的上面”
    //一般app 初始化 html 传参数，函数名固定
//function getParams(data){
//  // data需要转成json调用 ，函数urlParamParseJson();
//  var parms = urlParamParseJson(data);
//  //网络请求框架，需要传入成功函数回调和 失败函数回调
//  net_request('get','api/v1/banners',params,successCallBack,errorCallBack);
//}
    
  //成功的回调函数
function successCallBack(data){
    // isNotNull() 用来判断字段不为空
      if(isNotNull(data)){
//        console.log(data);
        if(data.success==true){
//        console.log(data);
          var curval = data.data;
          // isNotNull() 用来判断字段不为空
          if(isNotNull(curval)){
            var banner_tu="";
            var banner_shuzu =new Array();
               for(var i= 0;i<curval.length;i++){                                
                banner_shuzu[i]='<div class="swiper-slide"><img id="index_banner" style="width:100%;height:180px;" src="'+curval[i].img+'"></div>';
                banner_tu=banner_tu+banner_shuzu[i];
               }
               $$(".swiper-wrapper").html(banner_tu);
               $.reinitSwiper(); 
            }   
          }
        }
      }
// 失败的回调函数
function errorCallBack(data){
    console.log(data);
}
   // 初始化区域
   $$(function () {
    var params={};
    net_request('get','api/v1/banners',params,successCallBack,errorCallBack);       
    
       
    // 跳转本地页面、前面要加上local关键字
    //native_goto('local/xx');

      $.init();
   });


   //记忆宝典
   function menu_click1(){
    native_goto('local/tab1_jiyibaodian');
   }

   //核心考点
   function menu_click2(){
    native_goto('local/tab1_hexinkaodian');
   }

   //高分题库
   function menu_click3(){
    native_goto('local/tab1_gaofentiku');
   }

   //押题密卷
   function menu_click4(){
    native_goto('local/tab1_yatimijuan');
   }

   //直播课堂
   function menu_click5(){
    native_goto('local/tab1_zhiboketang');
   }

   //图书商城
   function menu_click6(){
    native_goto('local/tab1_tushushangcheng');
   }

    
</script>
</body>
</html>